package objPro.src.ljm;

public class Phone {
    @Override
    public String toString() {
        return "Phone [brand=" + brand + ", price=" + price + "]";
    }

    // 成员变量
    private String brand;
    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    private int price;

    public void call() {
        System.out.println("打电话~");
    }
};